<div class="hd-20161220">
  <div class="hd-banner-bg banner-bg1">
    <div class="hd-banenr">
      <div class="banner-text">
          Entrar <a href="#">Geekvida.es >></a>
      </div>
      <img class="banner-notice" src="./images/201612201.png" alt="">
      <a href="#" class="banner-left bannerButton"></a>
      <a href="#" class="banner-right bannerButton"></a>
    </div>
  </div>
  <div class="hd-main-content">   
      <div class="hd-display-container" style="background: #fecb3e;">
        <div class="hd-display-block w1055">
          <div class="panel-layout">
            <ul>
              <li><a class="hdPageLInk" href="#display1">XIAOMI</a></li>
              <li><a class="hdPageLInk" href="#display2">IPHONE & MEIZU</a></li>
              <li><a class="hdPageLInk" href="#display3">ALMACÉN CHINO</a></li>
              <li style="margin-bottom:0px;"><a class="hdPageLInk" href="#display4">GADGETS</a></li>
              <li class="hdLinkTop"><a class="hdPageLInk" href="#Top"></a></li>
            </ul>
          </div>
         </div>
      </div>
  </div>

  
</div>
<style>
  .hd-20161220{background: #fce6d9;min-width: 1300px;}
  .hd-20161220 .banner-bg1{background: url(./images/201612201.jpg)no-repeat center top;height:638px;min-width: 1300px;}
  .hd-20161220 .hd-banenr{height:638px;position: relative;width: 1103px;margin: 0px auto;}
  .hd-banenr .banner-text{ position: absolute; right: 0px; font-size: 14px; width: 160px; text-align: center; border: 1px solid #dedede; background: #0E7F09; padding: 5px; color: #fff;}
  .hd-banenr .banner-text a {color:#FEF102;}
  .hd-banenr .banner-notice {position: absolute; text-align: center; bottom: 106px; margin: 0px; left: 0px; -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; -webkit-transform: rotate(-10deg); -moz-transform: rotate(-10deg); transform: rotate(-10deg); -webkit-transform-origin: 50% 90%; -moz-transform-origin: 50% 90%; transform-origin: 50% 90%;}
  .hd-banenr .banner-notice.active {-webkit-transform: rotate(10deg); -moz-transform: rotate(10deg); transform: rotate(10deg);}
  .hd-banenr .bannerButton {position: absolute; bottom: 32px; width: 50%; height: 558px; display: block;}
  .hd-banenr .banner-left {left:0px;}
  .hd-banenr .banner-right {right:0px;}
  #display1 {background: url(./images/201612202.jpg) no-repeat center top #fecc9b;}
  #display2 {background: url(./images/201612203.jpg) no-repeat center top #63f1f8;}
  #display3 {background: url(./images/201612204.jpg) no-repeat center top #26354c;}
  #display4 {background: url(./images/201612205.jpg) no-repeat center top #fecb3e;}
  .small-list .hd-btn-buy{width: 100%; position: absolute; left: 0px; bottom: -45px;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
  .small-list:hover .hd-btn-buy {bottom:0px;}
  .small-list .hd-btn-buy:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
  ul li.small-list:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
  ul li.small-list:hover:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
  .hd-20161220 ul li {float: left;position: relative;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
  .title-content .w1055 {position: relative;height:130px;}
  #display3 .title-content .w1055 {height:150px;}
  #display4 .title-content .w1055 {height:160px;}
  .title-content .title-detail {text-align: center; position: absolute; margin: 0px; font-size: 20px;}
  #display1 .title-detail {bottom: 15px;color: #a45100;left: 410px;}
  #display2 .title-detail {bottom: 10px;color: #00686d;left: 304px;}
  #display3 .title-detail {bottom: 10px;color: #fff;left: 455px;}
  #display4 .title-detail {bottom: 20px;color: #6f4400;left: 380px;}
  .hd-display-block .display {text-align:center;}
  .hd-product-list .lis1 {margin:0px;}
  ul li.small-list {width:200px;margin:5px;background:#fff;}
  ul li.small-list:hover,.product-list ul li:hover {transform: translateY(-6px); -webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
  .hd-main-content .hd-display-container {padding-bottom:25px;}
  ul li.small-list .product-img {width: 100%; padding: 10px; box-sizing: border-box;}
  .small-list .hd-link-img {display: block; text-align: center; font-size: 14px; height: 270px; overflow: hidden; position: relative;color:#666;}
  .small-list .hd-link-img:hover {color:#666;}
  .hd-link-img .product-info {display: block;height:30px;line-height:15px;overflow: hidden;margin-top:5px;}
  .hd-main-content .old-price {font-size: 15px;text-decoration: line-through;color:#ac0000;display: block;margin-top:7px;}
  .hd-main-content .current-price { font-size: 25px;font-weight: bold;color: #fe0101;line-height: 22px;}
  .small-list .discount-number2{position: absolute;height: 55px;width: 55px;font-size: 20px;color: #fff;font-weight: bold;top: 0px;right: 0px;line-height: 55px;text-align: center;background: #aa0101;border-radius: 50%;}
  .panel-layout{width: 168px; height:370px; position: fixed; top: 0; margin-left: 1055px;-webkit-transform: scale(0.01); -moz-transform: scale(0.01); -o-transform: scale(0.01); -ms-transform: scale(0.01); transform: scale(0.01); -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; visibility: hidden; text-align: center;background:url(./images/201612202.png) no-repeat center;}
  .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
  .panel-layout .panel-top {position: absolute; left: 0px; z-index: 999; top: 0px;}
  .panel-layout ul {position: absolute; left: 0px; width: 95%; top: 152px;}
  .panel-layout ul li{list-style: none; margin: 0px auto 10px;width: 100%; height: 30px;}
  .panel-layout ul li a{display: block; width: 100%; color: #fff; text-align: center; font-size: 13px; height: 100%; line-height: 30px;}
  .panel-layout ul li.current a,.panel-layout ul li a:hover{color:#fff100;}
  .panel-layout ul li.hdLinkTop {height:40px;} 
</style>

<script type="text/javascript">
  (function($){
      $(function(){
        var str1 = '', str2 = '';
        for(var i = 0; i < 15; i++){
          str1 += `<li class="small-list">
                    <a class="hd-link-img" href="#">
                      <img class="product-img" src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                      <span class="product-info">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                      <span class="old-price">129.95€</span>
                      <span class="current-price">99.95€</span>
                      <img class="hd-btn-buy" src="./images/201612206.jpg" alt="comprar">
                    </a>
                      <span class="discount-number2">-25€</span>
                  </li>`;
        }

        for(var i = 0; i < 4; i++){
          str2 += ` <div class="hd-display-container" id="display${i+1}">
                    <div class="hd-display-block">
                      <div class="title-content">
                        <div class="w1055">
                          <h2 class="title-detail">¡Dejar tu Vida mas Conveniente!</h2>
                        </div>
                      </div>
                      <div class="display w1055">
                        <div class="hd-product-list">
                          <ul class="lis1 clearfloat">${str1}</ul>
                        </div>
                      </div>
                    </div>
                  </div>`
        }
        $(".hd-main-content").prepend(str2);
        var sideNav = $(".panel-layout");
        $(window).on("scroll",function(){
          var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true)-200;
          var modTop = [];
          if($(this).scrollTop()>=sideNavShow){
              sideNav.addClass("active");
            }
            else{
              sideNav.removeClass("active");
            }
          
          for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length - 1; i++) {
              modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-5;

              if ($(window).scrollTop() >= modTop[i]) {
                $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
              };
            };
        });
        
        sideNav.find("li").find(".hdPageLInk").on("click",function(e){
          e.preventDefault();
          var aHash = this.hash;
          $("html,body").animate({
            scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
          });
        });

        $(".hd-banenr .bannerButton").hover(function(){
          if($(this).hasClass("banner-left")){
            $(this).siblings(".banner-notice").removeClass("active");
          }else if($(this).hasClass("banner-right")){
            $(this).siblings(".banner-notice").addClass("active");
          }
          return false;
        });
        
      });
  })(jQuery); 
</script>